package com.aliyun.messagemgt.dto.excel;


import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.aliyun.messagemgt.dto.MessageTemplateParam;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 消息EXCEL模板
 */
@Data
public class MessageTemplateExcel {

    @ExcelIgnore
    private Long templateId;

    @ExcelIgnore
    private String tenantCode;

    @ExcelProperty(value="消息模板编码(不可重复)")
    private String templateCode;

    @ExcelProperty(value="消息模板名称(不可重复)")
    private String templateName;

    @ExcelProperty(value="消息模板标题(不可重复)")
    private String templateTitle;

//    @ExcelProperty(value="业务类型",index=5)
//    private String busType;

    @ExcelProperty(value="模板内容")
    private String templateContent;

    @ExcelProperty(value="备注")
    private String description;


    @ExcelProperty(value="消息模板状态 Y-启用 N-禁用")
    private String isEnabled;

    @ExcelIgnore
    private List<MessageTemplateParam> paramList;
    @ExcelIgnore
    private String isDeleted;

    @ExcelProperty(value="创建人")
    private String creator;

    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtCreated;


    @ExcelProperty(value = "更新人")
    private String modifier;

}
